package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.GoodsSubscribeMileageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订阅里程包表 Mapper 接口
 * </p>
 *
 * @author xuelin yi
 * @since 2019-08-12
 */
public interface GoodsSubscribeMileageMapper extends RootMapper<GoodsSubscribeMileageBean> {

    /**
     * 根据商品id集合查询订阅里程包信息
     * @param goodsIds
     * @return
     */
    List<GoodsSubscribeMileageBean> selectSubscribeMileageList(@Param("goodsIds") List<Integer> goodsIds);

    /**
     * 根据里程包id集合查询订阅里程包信息
     * @param packageId
     * @return
     */
    GoodsSubscribeMileageBean getSubscribeMileageById(@Param("packageId") Integer packageId);

    /**
     * 新增订阅里程包
     * @param goodsProductSubscribeMileage
     * @return
     */
    @Override
    int create(GoodsSubscribeMileageBean goodsProductSubscribeMileage);
}
